package com.techgig.codecontest.problem.fashioncontest2013;

public class CandidateCode {
    public static int fashion(int[] input1)
    {
        int M = input1.length - 1, m = M / 2, s = input1[m];
        for(int i = 0; i < m; i++)
        	s += input1[i] == input1[M - i] ? input1[i] : 0;
        return s;
    }
	public static void main(String[] args) {
		int[] input1 = {5,6,7,3,5};
		System.out.println(fashion(input1));
	}
}
